import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

import Quotations from '@/views/Quotations'
import QuotationsFrom from '@/views/QuotationsFrom'

const routes = [
    { path: '/', component: Quotations },
    { path: '/from', component: QuotationsFrom }
]

export default new Router({
    mode: 'history', // 去掉url中的#
    scrollBehavior: () => ({ y: 0 }),
    routes: routes
})
  